package cate.game.activity.serverprogress;

import cate.game.activity.base.core.ActivityGlobalData;
import easy.java.dev.note.NoteClass;
import easy.java.dev.note.NoteField;


@NoteClass("全服进度活动保存KV数据")
public class ServerProgressActivitySPO extends ActivityGlobalData {
    @NoteField("进度值")
    public long progress;

    @Override
    public synchronized void clear() {
        progress = 0;
    }

    /**
     * 同步添加进度
     */
    public synchronized void addProgress(long addNum) {
        progress += addNum;
    }
}
